const os = require('node:os');
//内存
console.log(os.totalmem());
//操作系统
console.log(os.type());
//获取主机名
console.log(os.hostname());
//正常运行时间
console.log(os.uptime());
//空闲的内存
console.log(os.freemem());
//CPU架构
console.log(os.arch());